package service.impl;

import dao.SysScheduleDao;
import dao.impl.SysScheduleDaoImpl;
import pojo.SysSchedule;
import service.SysScheduleService;

import java.util.List;

public class SysScheduleServiceImpl implements SysScheduleService {
    private SysScheduleDao sysScheduleDao = new SysScheduleDaoImpl();
    @Override
    public  List<SysSchedule> findAllScheduleByUid(Integer uid){
        return sysScheduleDao.findAllScheduleByUid(uid);
    }
    @Override
    public Integer addDefaultSchedule(Integer uid){
        return sysScheduleDao.addDefaultSchedule(uid);
    }
    @Override
    public Integer updateSchedule(SysSchedule sysSchedule){
        return sysScheduleDao.updateSchedule(sysSchedule);
    }
    @Override
    public Integer  removeSchedule(Integer sid){
        return sysScheduleDao.removeSchedule( sid);
    }


}
